home *** CD-ROM | disk | FTP | other *** search
- /* triglog */
- #include <stdio.h>
- #include <time2.h>
-
- extern double sin();
- extern double cos();
- extern double atan();
- extern double log();
-
- main()
- {
- int i;
- double x,y;
- clock_t start, end;
- start=clock();
- x = 0.0;
- y = 9.9;
- printf("Start\n");
- for (i=0; i<1000; i++)
- x = x + sin(atan(cos(log(y))));
- printf("finish %f\n",x);
- end=clock();
- printf("The timing for this trigonmetric calculation test was: %f \n", (end-start) / CLK_TCK);
- }
-